/*
 *
 *  * Copyright (c) 2016. For Intelligent Group.
 *
 */

package com.intelligent.ispc.client.event;

/**
 * Created by Peter on 2016/7/26.
 */
public class PanelChangeEvent {

    private Class panel;
    private String panelName;
    private boolean inContentPanel;

    /**
     * Constructor.
     */
    public PanelChangeEvent() {
    }

    /**
     * Constructor.
     *
     * @param panel Class
     */
    public PanelChangeEvent(Class panel) {
        this.panel = panel;
    }

    /**
     * Constructor.
     *
     * @param panel          Class
     * @param inContentPanel boolean is in the Content Panel
     */
    public PanelChangeEvent(Class panel, boolean inContentPanel) {
        this.panel = panel;
        this.inContentPanel = inContentPanel;
    }

    /**
     * Constructor.
     *
     * @param panel          Class
     * @param inContentPanel boolean is in the Content Panel
     * @param panelName      String
     */
    public PanelChangeEvent(Class panel, boolean inContentPanel, String panelName) {
        this.panel = panel;
        this.panelName = panelName;
        this.inContentPanel = inContentPanel;
    }

    public Class getPanel() {
        return panel;
    }

    public boolean getInContentPanel() {
        return inContentPanel;
    }

    public String getPanelName() {
        return panelName;
    }
}
